package ynu.edu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import ynu.edu.entities.BaseResponse;

import java.util.Map;

/**
 * 商户服务Feign客户端
 */
@FeignClient(name = "merchant-service", fallback = MerchantFeignClientFallback.class)
public interface MerchantFeignClient {

    /**
     * 获取商户信息
     */
    @GetMapping("/merchant/{businessId}")
    BaseResponse<Map<String, Object>> getMerchantById(@PathVariable("businessId") Integer businessId);
} 